package com.tuorial.utils;

import android.app.AlertDialog;
import android.content.Context;
import android.util.Log;

public class ErrorDialog{
	
	public static class Builder extends AlertDialog.Builder{

		public Builder(Context context) {
			super(context);
		}
		
		public Builder(Context context, String logMessage){
			super(context);
			Log.e("WTF???", logMessage);
		}
		
		public AlertDialog create(){
			AlertDialog errorDialog = super.create();
			errorDialog.setTitle("Ololo Exception!");
			errorDialog.setMessage("Try to do something");
			return errorDialog;
		}
	}
}
